package com.zzld.modules.autoinn.entity;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;

@Table(name = "zzld_autoinn_coupon")
public class Coupon {
    @Id
    @Column(name = "coupon_id")
    private String couponId;

    @Column(name = "coupon_name")
    private String couponName;

    @Column(name = "coupon_type")
    private Integer couponType;

    @Column(name = "coupon_price")
    private BigDecimal couponPrice;

    @Column(name = "coupon_count")
    private Integer couponCount;

    @Column(name = "coupin_des")
    private String coupinDes;

    @Column(name = "create_time")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="Asia/Shanghai")
    private Date createTime;

    private Byte state;

   
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh" , timezone="GMT+8")  
    private Date startime;

   
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh" , timezone="GMT+8")   
    private Date endtime;

    @Column(name = "soupon_qi")
    private Integer souponQi;
    
    @Column(name="coupon_zhi")
    private Integer couponZhi;
    public Integer getCouponZhi(){
    	return couponZhi;
    }
    public void setCouponZhi(Integer couponZhi){
    	this.couponZhi = couponZhi;
    }
    
    @Transient
    @Column(name="collar_time")
    private Date collarTime;
    public Date getCollartime(){
    	return collarTime;
    }
    public void setCollartime(Date collarTime){
    	this.collarTime=collarTime;
    }
    
    @Transient
    public String collarid;
    public String getCollarid() {
		return collarid;
	}
	public void setCollarid(String collarid) {
		this.collarid = collarid;
	}
	
	@Transient
	private int collarcount;
	public int getCollarcount(){
		return collarcount;
	}
	public void setCollarcount(int collarcount){
		this.collarcount=collarcount;
	}
	
	/**
     * @return coupon_id
     */
    public String getCouponId() {
        return couponId;
    }

    /**
     * @param string
     */
    public void setCouponId(String string) {
        this.couponId = string;
    }

    /**
     * @return coupon_name
     */
    public String getCouponName() {
        return couponName;
    }

    /**
     * @param couponName
     */
    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    /**
     * @return coupon_type
     */
    public Integer getCouponType() {
        return couponType;
    }

    /**
     * @param couponType
     */
    public void setCouponType(Integer couponType) {
        this.couponType = couponType;
    }

    /**
     * @return coupon_price
     */
    public BigDecimal getCouponPrice() {
        return couponPrice;
    }

    /**
     * @param couponPrice
     */
    public void setCouponPrice(BigDecimal couponPrice) {
        this.couponPrice = couponPrice;
    }

    /**
     * @return coupon_count
     */
    public Integer getCouponCount() {
        return couponCount;
    }

    /**
     * @param couponCount
     */
    public void setCouponCount(Integer couponCount) {
        this.couponCount = couponCount;
    }

    /**
     * @return coupin_des
     */
    public String getCoupinDes() {
        return coupinDes;
    }

    /**
     * @param coupinDes
     */
    public void setCoupinDes(String coupinDes) {
        this.coupinDes = coupinDes;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return state
     */
    public Byte getState() {
        return state;
    }

    /**
     * @param state
     */
    public void setState(Byte state) {
        this.state = state;
    }

    /**
     * @return startime
     */
    public Date getStartime() {
      return startime;
    }

    /**
     * @param startime
     */
    public void setStartime(Date startime) {
        this.startime = startime;
    }

    /**
     * @return endtime
     */
    public Date getEndtime() {
        return endtime;
    }

    /**
     * @param endtime
     */
    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    /**
     * @return soupon_qi
     */
    public Integer getSouponQi() {
        return souponQi;
    }

    /**
     * @param souponQi
     */
    public void setSouponQi(Integer souponQi) {
        this.souponQi = souponQi;
    }
}